package presenter;

import java.awt.Toolkit;

import model.GuiData;
import model.MapData;
import view.IGuiView;
import view.IMapView;

/**
 * @author  Natal Venetz
 */
public class MapPresenter implements IMapPresenter {

	/**
	 */
	private IMapView currentView;
	
	public MapPresenter(IMapView view) {
		
		currentView = view;
	}
	
	@Override
	public void InitializeMap() {
		
		GuiData guiData = GuiData.getInstance();

		MapData viewData = MapData.getInstance();
		viewData.setMapWindowWidth(guiData.getMainWindowWidth() / 2);
		viewData.setMapWindowHeight(guiData.getMainWindowHeight() / 2);
		
		currentView.InitializeView(viewData);
	}

}
